package com.ruoyi.hazard.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("hazard_info")
@ApiModel(value="HazardInfo对象", description="隐患信息表")
public class HazardInfo  implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
//    @ApiModelProperty(value = "隐患名称")
//    private String name;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "数据所属单位")
    private Long deptId;

    @TableField("sub_dept")
    @ApiModelProperty(value = "内设机构")
    private String subDept;

    @ApiModelProperty(value = "隐患类别（关联字典hazard_type）")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "隐患等级（关联字典hazard_level）")
    @TableField("level")
    private String level;

    @ApiModelProperty(value = "隐患详细描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "整改说明")
    @TableField("remark")
    private String remark;



    @ApiModelProperty(value = "文档附件信息集合（文件URL列表）")
    @TableField("attachments_document")
    private String attachmentsDocument;

    @ApiModelProperty(value = "图片附件信息集合（图片URL列表）")
    @TableField("attachments_image")
    private String attachmentsImage;
    @ApiModelProperty(value = "整改文档附件信息集合（文件URL列表）")
    @TableField("attachments_document2")
    private String attachmentsDocument2;

    @ApiModelProperty(value = "整改图片附件信息集合（图片URL列表）")
    @TableField("attachments_image2")
    private String attachmentsImage2;
//    @ApiModelProperty(value = "流转状态（new-新建, auditing-审核中, approved-审核通过, rejected-审核不通过）")
//    @TableField("status")
//    private String status = "new";

    @ApiModelProperty(value = "整改限期")
    @TableField("deadline")
    private Date deadline;
    @ApiModelProperty(value = "检查日期")
    @TableField("check_date")
    private Date checkDate;
    @ApiModelProperty(value = "整改完成日期")
    @TableField("finish_date")
    private Date finishDate;
    @ApiModelProperty(value = "隐患地点")
    @TableField("location")
    private String location;
//    @ApiModelProperty(value = "督办状态")
//    @TableField("supervised")
//    private Boolean supervised=false;
    @ApiModelProperty(value = "整改状态")
    @TableField("finished")
    private Boolean finished=false;
    @ApiModelProperty(value = "督办等级")
    @TableField("supervise_level")
    private String superviseLevel;
//    @ApiModelProperty(value = "是否启用督办")
//    @TableField("enable_supervise")
//    private Boolean enableSupervise=false;

//    @ApiModelProperty(value = "是否挂起（0-未挂起, 1-已挂起）")
//    @TableField("hangup")
//    private Boolean hangup;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人")
    private String createBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @TableLogic
    @ApiModelProperty(value = "删除标记")
    private String delFlag;
}
